<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <style>
    input[type=text] {
      color: red
    }

        input[type=password] {
      color: green
    }

  </style>

  <body>
    <!-- <input type="text" value="属性选择器" />
    <input type="text" /> -->

    <input type="text">
    <input type="password">
  </body>
</html>
